import request from '@/utils/request'
import { microservices } from '@/utils'

// 新增
export function putBsFunctionApi (data) {
  return request({
    url: `${microservices.pcpesIs}/BsFunction`,
    method: 'put',
    data
  })
}
// 修改
export function postBsFunctionApi (data) {
  return request({
    url: `${microservices.pcpesIs}/BsFunction`,
    method: 'post',
    data
  })
}
// 删除
export function deleteBsFunctionByIds (ids) {
  return request({
    url: `${microservices.pcpesIs}/BsFunction/${ids}`,
    method: 'delete'
  })
}
// 列表信息
export function BsFunctionApi (params) {
  return request({
    url: `${microservices.pcpesIs}/BsFunction`,
    params
  })
}
// 查询-根据ID查询（单条）
export function BsFunctionByIdApi (id) {
  return request({
    url: `${microservices.pcpesIs}/BsFunction/${id}`
  })
}


//启用/停用模板函数
export function BsFunctionToggleByIdApi (id) {
  return request({
    url: `${microservices.pcpesIs}/BsFunction/toggle/${id}`,
    method: 'put'
  })
}



